package com.jyxd.web.service.patient;

import com.jyxd.web.dao.patient.PatientTransferDao;
import com.jyxd.web.data.patient.PatientTransfer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Service("patientTransferService")
@Transactional
public class PatientTransferService {

    @Autowired
    private PatientTransferDao patientTransferDao;


    public boolean insert(PatientTransfer patientTransfer) {
        return patientTransferDao.insert(patientTransfer);
    }

    public boolean update(PatientTransfer patientTransfer) {
        return patientTransferDao.update(patientTransfer);
    }
    public List<PatientTransfer> queryDataByPatientId(String patientId) {
        return patientTransferDao.queryDataByPatientId(patientId);
    }

    public List<PatientTransfer> queryList(Map<String, Object> map) {
        return patientTransferDao.queryList(map);
    }
    /**
     * 从his数据库视图中查询患者转移信息
     * @param map
     * @return list
     */
    public List<Map<String, Object>> getTransferByHis(Map<String, Object> map){
        return null;
    }
}
